﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Class1 的摘要说明
/// </summary>
public class CheckClass
{
    public CheckClass()
	{
	}

    public static String NoSqlHack(String Str)
    {
        string SqlStr;

        
            SqlStr = "exec |insert |select |delete |update |count |chr |mid |master |truncate |char |declare ";
        

        
        try
        {
            if (Str != "")
            {
                string[] anySqlStr = SqlStr.Split('|');
                foreach (string ss in anySqlStr)
                {
                    if (Str.IndexOf(ss) >= 0)
                    {
                        
                    }
                }
            }
        }
        catch
        {
            return "";
        }
        return Str;
    }

    public static String MD5(String str, int length)
    {
        String pass=FormsAuthentication.HashPasswordForStoringInConfigFile(str, "MD5").ToLower();
        return pass;
    }


}
